/*
 * Description: process monitor message sender
 */
#ifndef PROCESS_MONITOR_H
#define PROCESS_MONITOR_H
#include "pch.h"
#include <string>
#include <Windows.h>

constexpr auto BUFF_SIZE = 4096;
constexpr auto PIPE_NAME = "\\\\.\\PIPE\\PERF_COMM";
constexpr auto PIPE_CONN_WAIT_DURATION = 20000;

namespace PERF {
class Messenger {
public:
    Messenger();
    ~Messenger();
    int Init();
    int Send(const std::string &message);

private:
    int OpenPipe();
    HANDLE m_hPipe = INVALID_HANDLE_VALUE;
};
}
#endif